package com.iflytek.uoamp.agent.monitor.mcagent;



/**
 * 监控平台所有组件的公共常量类
 * 全部的常量，包括用以分割字符串的分隔符等常量全部在该类中进行定义
 * @author Administrator
 *
 */
public class CommonConstant {

	/**
	 * 公共常量区域
	 */
	public static final String KEY_DATETIMEFORMAT = "yyyy-MM-dd HH:mm";
	// 主机所在机房的名称key
	public static final String KEY_HOSTROOMNAME = "KEY_HOSTROOMNAME";
	// 主机名称key
	public static final String KEY_HOSTNAME = "KEY_HOSTNAME";
	public static final String KEY_OSNAME = "KEY_OSNAME";
	public static final String KEY_CPNAME = "KEY_CPNAME";
	public static final String KEY_STATUS = "KEY_STATUS";
	public static final String KEY_VERSION = "KEY_VERSION";
	
	public static final String KEY_EVENTTYPE = "KEY_EVENTTYPE";
	public static final String KEY_LOCALIP = "KEY_LOCALIP";
	
	// 时间戳相关字段KEY
	// 开始时间KEY
	public static final String KEY_STM = "KEY_STM";
	// 结束时间KEY
	public static final String KEY_ETM = "KEY_ETM";
	// 花费时间KEY
	public static final String KEY_UTM = "KEY_UTM";
	// 格林威治时间(绝对时间)KEY
	public static final String KEY_CTM = "KEY_CTM";
	
	// null对象的字面量字符串
	public static final String VAL_NULL = "null";
	// 成功状态
	public static final String VAL_STATUS_SCCEED = "succeed";
	// 失败状态
	public static final String VAL_STATUS_FAILED = "failed";
	// 开始
	public static final String VAL_EVENTTYPE_START = "start";
	// 停止
	public static final String VAL_EVENTTYPE_STOP = "stop";
	// 重启
	public static final String VAL_EVENTTYPE_RESTART = "restart";


	/**
	 * mc-agent组件常量定义区域
	 * @author Administrator
	 *
	 */
	public static class ComponentMCAgent {
		public static final String NAME = "MCAgent";
		// shell执行输出结果换行符
		public static final String RESULTOUTPUT_SHELL_SPLIT = "\n";
	}

	/**
	 * mc-server组件常量定义区域
	 * @author Administrator
	 *
	 */
	public static class ComponentMCServer {
		public static final String NAME = "MCServer";
	}
	
	/**
	 * mc-server-proxy组件常量定义区域
	 * @author Administrator
	 *
	 */
	public static class ComponentMCServerProxy {
		public static final String NAME = "MCServerProxy";
	}

	/**
	 * mc-server-notify组件常量定义区域
	 * @author Administrator
	 *
	 */
	public static class ComponentMCServerNotify {
		public static final String NAME = "MCServerNotify";
	}
}
